/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.domain.req;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2022-1-20
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class SaveManufactureOrderRequest {

	/**
	 * 生产订单Id
	 */

	private Long manufactureOrderId;
	/**
	 * 来源单号
	 */
	private String sourceOrderCode;
	/**
	 * 订单类型：1-分装，2-生产
	 */
	@NotNull
	private Integer orderType;
	/**
	 * 标签：例如紧急度
	 */
	private String tag;
	/**
	 * 生产领料仓库Id
	 */
	private Long fromWarehouseId;
	/**
	 * 生产入库仓库Id
	 */
	private Long toWarehouseId;
	/**
	 * 计划生产日期
	 */
	private LocalDate expectManufactureDate;
	/**
	 * 复溶状态：0-不复溶，1-已通知复溶，2-已完成复溶
	 */
	@NotNull
	private Integer reconstitutionStatus;
	/**
	 * 备注
	 */
	private String memo;

	/**
	 * 货品明细
	 */
	private List<SaveManufactureOrderGoodsRequest> goodsList;

}
